import HelloWorld from '@/components/HelloWorld'
const wechatlogin = r => require.ensure([], () => r(require('@/pages/home/wechatlogin')), 'wechatlogin')
const index = r => require.ensure([], () => r(require('@/pages/home/index')), 'index')
const factoryList = r => require.ensure([], () => r(require('@/pages/home/factoryList')), 'factoryList')
const factoryManage = r => require.ensure([], () => r(require('@/pages/home/factoryManage')), 'factoryManage')
const login = r => require.ensure([], () => r(require('@/pages/home/login')), 'factoryManage')
export default [
	{
	      path: '/',
	      name: 'HelloWorld',
	      component: HelloWorld
	},
		{
	      path: '/login',
	      name: 'login',
	      component: login
	},
	{
      path: '/wechatlogin',
      name: 'wechatlogin',
      component: wechatlogin
    },
	{
      path: '/index',
      name: 'index',
			      meta: {
			      requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
			  },
      component: index
    },
		{
      path: '/factoryList',
      name: 'factoryList',
			      meta: {
			      requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
			  },
      component: factoryList
    },
	{
	path: '/factoryManage',
      name: 'factoryManage',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: factoryManage
	}
	]